package vektorrechnung;

public class Vektor {
	
	private double x;
	private double y;
	private double z;
	
	public Vektor(double a, double b, double c)
	{
		x = a;
		y = b;
		z = c;
	}
	
	public double getLength()
	{
		return Math.sqrt(VektorCalculation.skalar(new Vektor(x,y,z), new Vektor(x,y,z)));
	}
		
	public double getX()
	{
		return x;
	}
	public double getY()
	{
		return y;
	}
	public double getZ()
	{
		return z;
	}
	
	public String toString()
	{
		return "( "+x+"  "+y+"  "+z+" )";
	}
}